import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
import throttle from './utils/throttle.js';
import splicePrice from './utils/splicePrice.js';
import trim from './utils/trim.js';
import encryptPhone from './utils/encryptPhone.js';
Vue.use({
    install(Vue, options) {
		Vue.prototype.$throttle = throttle;//节流函数
		Vue.prototype.$splicePrice = splicePrice;//以小数点分割价格
		Vue.prototype.$trim = trim;//去除空格
		Vue.prototype.$encryptPhone = encryptPhone;//去除空格
    },
});
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif